package oopchapter3_Cat;

public class Master {
	private String name = "none";
	private int money = 0;
	
	public Master(String name,int money) {
		this.name = name;
		this.money = money;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getMoney() {
		return money;
	}

	public void setMoney(int money) {
		this.money = money;
	}
	
	public void feed(Pet pet) {
		pet.eat();
	}

}
